<?php
class Benchmark {
	public $timestart = null;
	
	function __construct() {
		$this->timestart = microtime(true);
	}
	
	function __destruct() {
		if ('json' != URI::getInstance()->getResponse()) {
			echo '<!--'.round(microtime(true)-$this->timestart, 3).'-->';
		}
	}
}
?>